﻿<phone:PhoneApplicationPage
    x:Class="SLARToolKitWinPhoneSample.M_bmi_bmr"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="False">

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot">
        <Grid.Background>
            <ImageBrush Stretch="Fill" ImageSource="/Images/m_bg.jpg"/>
        </Grid.Background>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel Grid.Row="0" Margin="12,17,0,28">
            <!--<TextBlock Text="FoodScan" Style="{StaticResource PhoneTextNormalStyle}"/>-->
            <TextBlock Text="Enter your information:" Style="{StaticResource PhoneTextNormalStyle}" Margin="12,10,12,0" FontWeight="Bold"/>

        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0">
            <Grid>

                <TextBox  Margin="0,-27,10,0" Name="weight_box" GotFocus="weight_box_GotFocus" LostFocus="weight_box_LostFocus" Text="Weight in kg" VerticalAlignment="Top"  AcceptsReturn="True" InputScope="Number" Height="67" FontSize="22" />
                <TextBox Margin="0,29,10,0" Name="height_box" GotFocus="height_box_GotFocus" LostFocus="height_box_LostFocus" Text="Height in cm" VerticalAlignment="Top" AcceptsReturn="True" InputScope="Number" FontSize="22" Height="67" />
                <TextBox Margin="0,85,10,0" x:Name="age_box" GotFocus="age_box_GotFocus" LostFocus="age_box_LostFocus" Text="Age in years" VerticalAlignment="Top"  AcceptsReturn="True" InputScope="Number" FontSize="22" Height="67" />
                <TextBlock Text="Select an activity factor:" Style="{StaticResource PhoneTextNormalStyle}" Margin="10,152,14,-142" FontWeight="Bold"/>
                <StackPanel Margin="0,168,0,-168">
                    <RadioButton x:Name="rb1" GroupName="Activity_level" Checked="HandleCheck" IsChecked="true" Content="Sedentary - Little or no exercise" ScrollViewer.VerticalScrollBarVisibility="Auto" ScrollViewer.HorizontalScrollBarVisibility="Auto" Height="72" FontSize="22" TabIndex="2147483646"/>
                    <RadioButton x:Name="rb2" GroupName="Activity_level" Checked="HandleCheck"  Content="Light - Light exercise/sports 1-3 days &#xA;per week" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Height="98" FontSize="22"/>
                    <RadioButton x:Name="rb3" GroupName="Activity_level" Checked="HandleCheck" Content="Moderate - Moderate exercise/sports&#xA; 3 -5 days per week" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Height="98" FontSize="22" />
                    <RadioButton x:Name="rb4" GroupName="Activity_level" Checked="HandleCheck" Content="Very - Hard exercise/sports 6-7 days &#xA;per week" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Height="98" FontSize="22" />
                    <RadioButton x:Name="rb5" GroupName="Activity_level" Checked="HandleCheck" Content="Extra - Extreme hard daily exercise/&#xA;sports and physical job" ScrollViewer.HorizontalScrollBarVisibility="Auto" ScrollViewer.VerticalScrollBarVisibility="Auto" Height="98" FontSize="22" />
                </StackPanel>
                <Button Content="Calculate" Height="72" HorizontalAlignment="Left" Margin="139,629,0,0" Name="calculate_button" VerticalAlignment="Top" Width="160"  Click="calculate_button_Click" />

            </Grid>
        </Grid>
    </Grid>


</phone:PhoneApplicationPage>